package com.vitaf.cash.lib.font;


import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatButton;

/**
 * Vitaf
 *
 * @Author wwdeng
 * @CreateTime: 2025/10/27 15:51
 * @Annotation：
 */
public class VitafRbtBlackItalicButton extends AppCompatButton {
    public VitafRbtBlackItalicButton(Context context) {
        super(context);
    }

    public VitafRbtBlackItalicButton(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public VitafRbtBlackItalicButton(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void setTypeface(@Nullable Typeface tf) {
        super.setTypeface(tf);
    }

    @Override
    public void setTypeface(@Nullable Typeface tf, int style) {
        super.setTypeface(Typeface.createFromAsset(getContext().getAssets(),"fonts/Rbt-BlackItalic.ttf"));
    }
}
